			
            <div id="title-bar">
                <h2 id="title-page">Chi tiết hóa đơn (<?php echo ($order->Status==0)?'Chờ kiểm duyệt':(($order->Status==1)?'Đang hoạt động':'Hết hạn')?>)</h2>
            </div>
            
            <div class="clearfix"></div>
                <div class="row-fluid">
                	<div class="span8"></div>
                    <div class="span4">
                    <?php echo form_open('administrator/order/'.$action['name'].'?act=view&orderid='.$order->OrderId)?>
                    
                    	<div class="pull-right">
                        <?php if($order->Status==0):?>
                        
                			<button id="btnAcceptDDH" class="btn btn-small btn-success btn-strong" value="Accept" name="btnAcceptDDH" type="submit">Chấp nhận hóa đơn</button>
                        <?php endif;
                              if($order->Status==0 || $order->Status==1):?>
                            <button id="btnCancelDDH" class="btn btn-small btn-danger btn-strong" value="Cancel" name="btnCancelDDH">Hủy hóa đơn</button>
                        <?php endif;?>
                        
                    	</div>
                    <?php echo form_close()?>
                    
                    </div>
                </div>
            	<div class="row-fluid">
                    <div class="span6">
                    	<div class="tablename">
                        	<h6>Thông tin khách hàng</h6>
                        </div>
                        <table class="table table-striped table-bordered pm-tables tablesorter genaral-tables" width="100%" cellspacing="0" cellpadding="0">
                            <tbody>
                                <tr>
                                    <td width="30%">
                                    	<strong>Tài khoản:</strong>
                                    </td>
                                    <td width="70%"><?php echo $order->Email?></td>
                                </tr>
                                <tr>
                                    <td width="30%">
                                    	<strong>Họ tên:</strong>
                                    </td>
                                	<td width="70%"><?php echo $order->FullName?></td>
                                </tr>
                                <tr>
                                    <td width="30%">
                                    	<strong>Giới tính:</strong>
                                    </td>
                                	<td width="70%"><?php echo ($order->Gender==0)?'Nam':'Nữ'?></td>
                                </tr>
                                <tr>
                                    <td width="30%">
                                    	<strong>Ngày sinh:</strong>
                                    </td>
                                	<td width="70%"><?php echo date('d-m-Y', strtotime($order->Birthday))?></td>
                                </tr>
                                <tr>
                                    <td width="30%">
                                    	<strong>Số điện thoại:</strong>
                                    </td>
                                	<td width="70%"><?php echo $order->Phone?></td>
                                </tr>
                                <tr>
                                    <td width="30%">
                                    	<strong>Địa chỉ:</strong>
                                    </td>
                                	<td width="70%"><?php echo $order->Address?></td>
                                </tr>
                            </tbody>
                        </table>
                        <div class="tablename">
                        	<h6>Thông tin thanh toán đơn đặt hàng</h6>
                        </div>
                        <table class="table table-striped table-bordered pm-tables tablesorter genaral-tables" width="100%" cellspacing="0" cellpadding="0">
                            <tbody>
                                <tr>
                                    <td width="30%">
                                    	<strong>Phương thức TT:</strong>
                                    </td>
                                    <td width="70%"><?php echo $order->NameMethod_vn?></td>
                                </tr>
                                <tr>
                                    <td width="30%">
                                    	<strong>Người thanh toán:</strong>
                                    </td>
                                	<td width="70%"><?php echo $order->Payer?></td>
                                </tr>
                                <tr>
                                    <td width="30%">
                                    	<strong>Ngày thanh toán:</strong>
                                    </td>
                                	<td width="70%"><?php echo (!empty($order->Date))?date('d-m-Y', strtotime($order->Date)):''?></td>
                                </tr>
                                <tr>
                                    <td width="30%">
                                    	<strong>Mã giao dịch:</strong>
                                    </td>
                                	<td width="70%"><?php echo $order->Transaction?></td>
                                </tr>
                                <tr>
                                    <td width="30%">
                                    	<strong>Số tiền thanh toán:</strong>
                                    </td>
                                	<td width="70%"><?php if($order->Money){ echo number_format($order->Money,0,',','.');}?></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="span6">
                    	<div class="tablename">
                        	<h6>Thông tin đơn đặt hàng</h6>
                        </div>
                    	<table class="table table-striped table-bordered pm-tables tablesorter genaral-tables" width="100%" cellspacing="0" cellpadding="0">
                            <tbody>
                                <tr>
                                    <td width="30%">
                                    	<strong>Mã đơn đặt hàng:</strong>
                                    </td>
                                    <td width="70%"><?php echo $order->Codes?></td>
                                </tr>
                                <tr>
                                    <td width="30%">
                                    	<strong>Gói kênh:</strong>
                                    </td>
                                	<td width="70%"><?php echo $order->NameService_vn.' / '.$order->Duration.' tháng'?></td>
                                </tr>
                                <tr>
                                    <td width="30%">
                                    	<strong>Ngày tạo:</strong>
                                    </td>
                                	<td width="70%"><?php echo date('d-m-Y H:i:s', strtotime($order->CreateDate))?></td>
                                </tr>
                                <tr>
                                    <td width="30%">
                                    	<strong>Ngày bắt đầu:</strong>
                                    </td>
                                	<td width="70%"><?php echo (!empty($order->StartDate))?date('d-m-Y H:i:s', strtotime($order->StartDate)):''?></td>
                                </tr>
                                <tr>
                                    <td width="30%">
                                    	<strong>Ngày kết thúc:</strong>
                                    </td>
                                	<td width="70%"><?php echo (!empty($order->EndDate))?date('d-m-Y H:i:s', strtotime($order->EndDate)):''?></td>
                                </tr>
                                <tr>
                                    <td width="30%">
                                    	<strong>Số tiền:</strong>
                                    </td>
                                	<td width="70%"><?php echo number_format($order->TotalPrice,0,',','.')?> VNĐ</td>
                                </tr>
                                <tr>
                                    <td width="30%">
                                    	<strong>Ghi chú:</strong>
                                    </td>
                                	<td width="70%"><?php echo $order->Note?></td>
                                </tr>
                            </tbody>
                        </table>
                        <?php if(!empty($order->NameEmployee)):?>
                        
                        <div class="tablename">
                        	<h6>Thông tin xác nhận đơn đặt hàng</h6>
                        </div>
                    	<table class="table table-striped table-bordered pm-tables tablesorter genaral-tables" width="100%" cellspacing="0" cellpadding="0">
                            <tbody>
                                <tr>
                                    <td width="30%">
                                    	<strong>Người xác nhận:</strong>
                                    </td>
                                    <td width="70%"><?php echo $order->NameEmployee?></td>
                                </tr>
                                <tr>
                                    <td width="30%">
                                    	<strong>Ngày xác nhận:</strong>
                                    </td>
                                	<td width="70%"><?php echo date('d-m-Y H:i:s', strtotime($order->StartDate))?></td>
                                </tr>
                            </tbody>
                        </table>
                        <?php endif; ?>
                        
                    </div><!-- End .span6 -->
                </div>
                <div class="clearfix"></div>
            